package cn.highedu.dubbo.service;


import cn.highedu.service.DemoService;
import org.apache.dubbo.config.annotation.DubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@DubboService
@Component
public class DemoServiceImpl implements DemoService {

    private Logger logger = LoggerFactory.getLogger(DemoServiceImpl.class);

    @Override
    public String sayHello(String name) {
        logger.info("Dubbo Service sayHello() is called");
        return "Hello " + name + " from Dubbo Service2";
    }
}
